 package com.bmps.springcloud.insuredmicroservice.model.accept.resquest;

 import com.alibaba.fastjson.annotation.JSONField;
 import lombok.Data;
 import org.apache.commons.lang3.builder.EqualsBuilder;
 import org.apache.commons.lang3.builder.HashCodeBuilder;

 import javax.validation.constraints.NotBlank;
 import javax.validation.constraints.NotNull;
 import java.io.Serializable;
 import java.util.Date;

 /**
  *  @author lyw
  *  @date 2019/07/24
  */
 @Data
 public class BeneficiaryModel implements Serializable {

     @NotBlank(message="bfcyLevel字段不能为空!")
	 private String bfcyLevel;

     @NotBlank(message="bfcyName字段不能为空!")
	 private String bfcyName;

     @NotBlank(message="bfcySex字段不能为空!")
	 private String bfcySex;

	 @JSONField(format = "yyyy-MM-dd")
     @NotNull(message="bfcyBirthday字段不能为空!")
	 private Date bfcyBirthday;

     @NotBlank(message="bfcyIdType字段不能为空!")
	 private String bfcyIdType;

     @NotBlank(message="bfcyIdCode字段不能为空!")
	 private String bfcyIdCode;

	 @JSONField(format = "yyyy-MM-dd")
	 private Date bfcyIdExpDate;

	 @JSONField(format = "yyyy-MM-dd")
     @NotNull(message="bfcyIDStartExpDate字段不能为空!")
	 private Date bfcyIDStartExpDate;

     @NotBlank(message="relToIns字段不能为空!")
	 private String relToIns;

     @NotBlank(message="bfcyRatio字段不能为空!")
	 private String bfcyRatio;

     @NotNull(message="belongWith字段不能为空!")
	 private Integer belongWith;

     @NotBlank(message="nativePlace字段不能为空!")
	 private String nativePlace;

	 private String mobile;

	 private String province;

	 private String city;

	 private String county;

	 private String street;

	 private String community;

	 private String postalAddress;

     @NotBlank(message="occupationType字段不能为空!")
	 private String occupationType;

     @NotBlank(message="occupationCode字段不能为空!")
	 private String occupationCode;

     private String bfcyNo;

 }
